package org.jeecg.modules.param.sms.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 短信记录表
 * @Author: 月月鸟
 * @Date:   2021-05-26
 * @Version: V1.0
 */
@Data
@TableName("bike_sys_sms_code")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bike_sys_sms_code对象", description="短信记录表")
public class BikeSysSmsCode implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**手机号*/
	@Excel(name = "手机号", width = 15)
    @ApiModelProperty(value = "手机号")
    private java.lang.String mobile;
	/**验证码类型(1->注册, 2->忘记密码, 3->修改密码, 4->注册)*/
	@Excel(name = "验证码类型(1->注册, 2->忘记密码, 3->修改密码, 4->验证手机号)", width = 15, dicCode = "sms_type")
	@Dict(dicCode = "sms_type")
    @ApiModelProperty(value = "验证码类型(1->注册, 2->忘记密码, 3->修改密码, 4->手机号登录，5->更换手机号)")
    private java.lang.String type;
	/**验证码*/
	@Excel(name = "验证码", width = 15)
    @ApiModelProperty(value = "验证码")
    private java.lang.String smsCode;
	/**请求时间*/
	@Excel(name = "请求时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "请求时间")
    private java.util.Date requestTime;
	/**有效时间(秒)*/
	@Excel(name = "有效时间(秒)", width = 15)
    @ApiModelProperty(value = "有效时间(秒)")
    private java.lang.Integer expiredTime;
}
